package com.xr.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.Version;

import java.io.Serializable;

/**
 * base model
 */
public class Model implements Serializable{

  /**
   * 创建时间（秒）
   */
  @TableField("create_time")
  protected Long createTime;
  /**
   * 最后更新时间（秒）
   */
  @TableField("update_time")
  protected Long updateTime;
  /**
   * 版本号，每次更新+1
   */
  @Version
  protected Integer version;
  /**
   * 扩展信息
   */
  protected String feature;

  public Long getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Long createTime) {
    this.createTime = createTime;
  }

  public Long getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Long updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public String getFeature() {
    return feature;
  }

  public void setFeature(String feature) {
    this.feature = feature;
  }
}
